package cn.org.itool.demo.controller;

import cn.org.itool.ws.framework.annotation.CommandMapping;
import cn.org.itool.ws.framework.annotation.Handler;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Handler
@RestController
public class HomeController {


    @CommandMapping("/api/home/hello")
    @RequestMapping("/")
    public String home() {
        return "hello world";
    }

    @RequestMapping("/health/status")
    public String health() {
        return "200";
    }
}
